package com.acegear.horizon.domain.models.vo;

import java.util.List;

import com.acegear.horizon.domain.models.jpa.ClubBase;
import com.acegear.horizon.domain.models.jpa.ClubInfo;
import com.acegear.horizon.domain.models.jpa.ContentPart;

/**
 * Created by wangsike on 2016/12/27.
 */
public class ClubVO {

	private Long clubId;

	private String clubName;

	private String logo;

	private String background;

	private String address;

	private Boolean isMember;

	private String info;

	private Boolean register;

	private String introduction; // TreeJohn

	public ClubVO(ClubBase clubBase, ClubInfo clubInfo, Boolean isMember) {
		this.clubId = clubBase.getClubId();
		this.clubName = clubBase.getClubName();
		this.logo = clubBase.getLogo();
		this.background = clubBase.getBackground();
		this.address = clubInfo.getAddress().getAddress();
		this.isMember = isMember;
		this.info = clubInfo.getInfo();
		this.register = clubBase.getRegister();
//		StringBuilder builder = new StringBuilder();
//		for (ContentPart cp : clubInfo.getIntroduction()) {
//			builder.append(cp.getContent());
//		}
//		this.introduction = builder.toString();
	}

	public Long getClubId() {
		return clubId;
	}

	public void setClubId(Long clubId) {
		this.clubId = clubId;
	}

	public String getClubName() {
		return clubName;
	}

	public void setClubName(String clubName) {
		this.clubName = clubName;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getBackground() {
		return background;
	}

	public void setBackground(String background) {
		this.background = background;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Boolean getMember() {
		return isMember;
	}

	public void setMember(Boolean member) {
		isMember = member;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Boolean getRegister() {
		return register;
	}

	public void setRegister(Boolean register) {
		this.register = register;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
}
